The DISSOLVE procedure provides a digital “dissolve” effect for images. The routine copies pixels from the image (arranged into square tiles) to the display in pseudo-random order. This routine is written in the IDL language. Its source code can be found in the file dissolve.pro in the lib subdirectory of the IDL distribution.
Read in and display an image using a 10 x 10 pixel size:
fir = FILEPATH('africavlc.png', SUBDIR=['examples', 'data'])
READ_PNG, fir, firi
DISSOLVE, firi, DELAY=0.001, SIZ=10
DISSOLVE, Image [, DELAY=seconds] [, /ORDER] [, SIZ=pixels] [, X0=pixels] [, Y0=pixels]
The image to be displayed. It is assumed that the image is already scaled. Byte-valued images display most rapidly.
The wait between displaying tiles. The default is 0.01 second.
The Image display order: 0 = bottom up (the default), 1 = top-down.
Size of square tile. The default is 32 x 32 pixels.
The X offset of the lower-left corner of the image on screen, in pixels.
The Y offset of the lower-left corner of the image on screen, in pixels.
|
Pre 4.0 |
Introduced |